<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
</head>
<body>

<h1>showthymeleaf.html</h1>
      <table border="1" cellspacing="0" width="300px">
          <tr>
              <td>姓名</td>
              <td>性别</td>
          </tr>
          <tr th:each="student : ${stus}">
              <td th:text="${student.sname2}"></td>
              <td th:text="${student.sex}"></td>
          </tr>
  </table>
</body>
</html>